<?php 
if((BOOTSTRAP > 0) || ($theme->getBootstrap() > 0))
{
	echo '<ul class="breadcrumb">';
		echo '<li><a href="/">'.ucfirst($txt->getWord('frontpage')).'</a> </li>'; 
		if($katana->OpenMenus)
		{
			foreach($katana->OpenMenus as $section)
			{
				if($katana->OpenMenus[0]['id'] != $section['id'])
				{
					if(($katana->MenuID != $section['id']) || ($katana->getProductID() > 0))
					{ 
						if(URL_REWRITE == true)
						{ echo '<li><a href="/m/'.$section['id'].'">'.$section['title'].'</a></li>'; }
						else
						{ echo '<li><a href="/?m='.$section['id'].'">'.$section['title'].'</a></li>'; }
					}
					else
					{ echo '<li class="active">'.$section['title'].'</li>'; }
		
				}
			}
		}
		if($com->Id > 0)
		{ echo '<li><a href="/c/'.$com->Id.'/">'.$com->NameL.' '.$com->NameR.'</a></li>'; }
		if(($katana->ActiveCores[8] > 0) && ($katana->getProductID() > 0))
		{ echo '<li class="active">'.$shop->getCurrentProduct()->getTitle().'</li>'; }
	echo '</ul>';
}
else
{
	echo '<a href="/">Home</a>'; 
	if($katana->OpenMenus)
	{
		foreach($katana->OpenMenus as $section)
		{
			if($katana->OpenMenus[0]['id'] != $section['id'])
			{
				if($katana->MenuID != $section['id'])
				{ 
					echo '<span class="ccm-autonav-breadcrumb-sep">&nbsp;/&nbsp;</span>'; 
					if(URL_REWRITE == true)
					{ echo '<a href="/m/'.$section['id'].'">'.$section['title'].'</a>'; }
					else
					{ echo '<a href="/?m='.$section['id'].'">'.$section['title'].'</a>'; }
				}
				else
				{ echo '<span class="ccm-autonav-breadcrumb-sep">&nbsp;/&nbsp;</span>'.$section['title'].''; }
	
			}
		}
	}	
}
?>